<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SQSchemaE.aspx.vb" Inherits="SAD_SQSchemaE" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <link href="ADStyles.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" language="javascript">
function NewWindowForPrinting()
{
    var WinRef = window.open('','Schema_Results','width=515,height=600'
                           +',menubar=1'
                           +',toolbar=1'
                           +',status=0'
                           +',scrollbars=1'
                           +',resizable=1');
   
    var oContent=document.getElementById('divWindowBody');
    WinRef.document.write('<html>');
    WinRef.document.write('<head>');
    WinRef.document.write('<title>Changed Schema Elements</title>');
    WinRef.document.write('<style type=\"text/css\">\r');
    WinRef.document.write('body\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');
    WinRef.document.write('tr\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');    
    WinRef.document.write('</style>\r');
    WinRef.document.write('<link href=\"http://<%=Session("BASEDIR")%>/SAD/ADStyles.css\" rel=\"stylesheet\" type=\"text/css\"/>');
    WinRef.document.write('</head>');
    WinRef.document.write('<body style=\"font-size: 10px;\"/>');
    WinRef.document.write(oContent.innerHTML);  
    WinRef.document.write('</body>');
    WinRef.document.write('</html>');
    WinRef.document.close();
}

function onLoad()
{
    var TopWindow=top.window.document;
    
    var DashTitle=TopWindow.getElementById('DashboardTitle');
    var DashMode=TopWindow.getElementById('DMode');
    var MyServer=TopWindow.getElementById('SID');
    
    DashTitle.innerHTML='<%=me.FormLabel %>';
    DashMode.value='<%=me.EditMode %>';
    MyServer.value='<%=me.ServerID %>';
}
</script>

<body onload="onLoad();">
    <form id="form1" runat="server">
    <div style="margin-bottom: 15px;">
    <table style="background-color: #C3C4C1; width: 515px; border: solid 1px black;">
        <tr>
            <td rowspan="2" style="vertical-align:bottom; padding-bottom:7px;">
                Changes made between:
            </td>
            
            <td>
                From
            </td>
            
            <td>
                To
            </td>
            
            <td colspan="3">&nbsp;</td>
        </tr>
        
        <tr>
            <td>
                <input type="text" size="10" id="txtStartDate" runat="server" />
            </td>
            
            <td>
                <input type="text" size="10" id="txtEndDate" runat="server" />
            </td>
            
            <td style="width:25px;"> 
                <a href="" 
                    runat="server" 
                    id="ARefresh">
                <img src="images/tb_refresh.jpg"   
                     title="Refresh"
                     alt="Refresh" 
                     onclick="javascript:document.form1.submit();" 
                     border="0" />
                </a>
            </td>
            
            <td style="width:25px;"> 
                <input type="image"
                       src="images/tb_newwindow.jpg"
                       onclick="javascript:NewWindowForPrinting();"  
                       title="View in seperate window for printing"
                       alt="View in seperate window for printing" />
            </td>        
            
            <td style="width: 100px;">&nbsp;</td>
        </tr>
    </table>
    </div>
    
    <div id="divWindowBody">
    <div id="divDBName" style="text-align:left; margin-bottom: 10px; font-size:12px; font-weight: bold; border-bottom: solid 1px black;" runat="server"/>
    
    <%Me.ShowChanges()%>
    <input type="hidden" id="hidDBID" name="hidDBID" runat="server" />
    <input type="hidden" id="hidDBN" name="hidDBN" runat="server" />
    <input type="hidden" id="hidSID" name="hidDBID" runat="server" />
    </div>
    </form>
</body>
</html>
